<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h1>用户登录</h1>

    <form action="<%=request.getContextPath()%>/login" method="post">
        用户名：<input type="text" name="username"/><br/>
        密码：<input type="password" name="password"/><br/>
        <input type="checkbox" name="savePassword" value="true"/>记住密码<br/>
        <input type="submit" value="登录"/>
    </form>

    <%
        String message= (String) request.getAttribute("message");
        if(message!=null){
            out.print(message);
        }
    %>

</body>
</html>
